# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd

df = pd.read_csv('data/stock.csv')

# cumsum：计算前n个数的和
print(df['open'].cumsum())

# cummax：计算前n个数的最大值
print(df['open'].cummax())

# cummin：计算前n个数的最小值
print(df['open'].cummin())

# cumprod：计算前n个数的乘积
print(df['open'].cumprod())
